Session class
class Session:
sessionID = ""
location = ""
users = []
matches = {}
activeUsers = {}
suspendedUsers = {}
disconnectedUsers = {}
### Allow user to join session, return bool with true or false for success or failure
### Can contain logic for symmetrical graph, allowing people in based on number of users, etc. return status codes as ENUMS instead of
def joinSession(user):
### Create a graph object and adjacency matrix at the beginning of a swipe session
def createGraph():
### Return user ids for next 20 users, these users will be saved to client's cache
def getNextN(user, N):
### Update graph based on user's likes returned from a blob
def updateGraph()
### Last function called at the end of the swipe sessions after all user swipes have been updated
def findMatches()
### Return user's match from list of matches
def getMatch(user):
### Write in-memory graph and session object to DB
def writeToDB(sessionID):